<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<meta charset="gb2312"/>
<base  target="target" />    <!-- root -->
<style>

div{
   white-space: nowrap;                        /* ËÑµÄÃ»Ñ§ */
   padding-left:16px;}
span{background:url('folder(closed).png') no-repeat;
   padding-left:17px;
   font-size:12px;display:block;
   cursor:default;}
span:hover{text-decoration: underline;}
span.open{background:url('folder(open).ico') no-repeat;}
span.file{background:url('file.png') no-repeat;}
a  {text-decoration: none;
   cursor:default;}

</style>
<script>
<!--<xsl:comment>-->
function e(b){
//alert(b);
i=b;
o=b.nextElementSibling;
if(!o){
i=b;
o=b.nextSibling;      //---nextSibling in IE----
	}
   if(i.className=="open"){
i.className="";
o.style.display="none"}
	else{
i.className="open";
o.style.display="block";
	}
}
<!--</xsl:comment>-->
</script>
</head>
<body>                                         <!--  noWrap="true" -->
	<div style="padding-left:0px;">
	<xsl:apply-templates/>
	</div>
</body>
</html>
</xsl:template>


<xsl:template match="*[node()]">
		<span class="open" onclick="e(this)"><xsl:value-of select="name()"/></span>
			<div>
			<xsl:apply-templates/>
			</div>
</xsl:template>

<xsl:template match="*">
		<span class="file"><a><xsl:attribute name="href">
d3d<xsl:if test="../../../../../../.."><xsl:value-of select="name(../../../../../../..)"/>/</xsl:if>
		<xsl:if test="../../../../../.."   ><xsl:value-of select="name(../../../../../..)"/>/</xsl:if>
		<xsl:if test="../../../../.."      ><xsl:value-of select="name(../../../../..)"/>/</xsl:if>
		<xsl:if test="../../../.."         ><xsl:value-of select="name(../../../..)"/>/</xsl:if>
		<xsl:if test="../../.."            ><xsl:value-of select="name(../../..)"/>/</xsl:if>
		<xsl:if test="../.."               ><xsl:value-of select="name(../..)"/>/</xsl:if>
		<xsl:if test=".."                  ><xsl:value-of select="name(..)"/>/</xsl:if>
						    <xsl:value-of select="name()"/>
		</xsl:attribute><xsl:value-of select="name()"/></a>
		</span>
</xsl:template>
</xsl:stylesheet>